Restrict
annotation class Restrict(val min: Byte = Byte.MIN_VALUE, val max: Byte = Byte.MAX_VALUE, val type: ValidatedNumber.WidgetType = WidgetType.SLIDER)
Annotation-driven validation for Bytes
Author
fzzyhmstrs
Since
0.2.0, added widget type 0.6.3
Parameters
min
: Byte - minimum allowable value, default to Byte.MIN_VALUE
max
: Byte - maximum allowable value, default to Byte.MAX_VALUE
type
: ValidatedNumber.WidgetType - The "style" of the GUI widget for the annotated setting